package com.daigoudao.web.service.impl;

import java.util.List;

import com.daigoudao.web.dao.IAppealsDao;
import com.daigoudao.web.model.AppealsModel;
import com.daigoudao.web.service.IAppealsService;
import com.daigoudao.web.service.ICanBuyService;

public class AppealsServiceImpl implements IAppealsService {
	IAppealsDao appealsDao;
	ICanBuyService canBuyService;

	public void setCanBuyService(ICanBuyService canBuyService) {
		this.canBuyService = canBuyService;
	}

	public void setAppealsDao(IAppealsDao appealsDao) {
		this.appealsDao = appealsDao;
	}

	@Override
	public void insertAppeal(AppealsModel appealsModel) throws Exception {
		appealsDao.insertAppeal(appealsModel);
	}

	@Override
	public void deleteAppeal(int id) throws Exception {
		appealsDao.deleteAppeal(id);
	}

	@Override
	public int getAppealCount(AppealsModel appealsModel) throws Exception {
		return appealsDao.getAppealCount(appealsModel);
	}

	@Override
	public List<AppealsModel> queryAppeals(AppealsModel appealsModel)
			throws Exception {
		return appealsDao.queryAppeals(appealsModel);
	}

}
